package com.zwb.demo.easyweb.modules.config.entity;

import com.zwb.demo.easyweb.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * java字段类型
 */
@Entity
@Table(name = "t_java_field_type")
@Data
@EqualsAndHashCode(callSuper = true)
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class JavaFieldTypePO extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "id", insertable = false, nullable = false, length = 32)
    private String id;

    /**
     * 标签
     */
    @Column(name = "label", nullable = false)
    private String label;

    /**
     * 完整类名
     */
    @Column(name = "class_name", nullable = false)
    private String className;

    /**
     * 是否基本类型
     */
    @Column(name = "is_basic_type", nullable = false)
    private Boolean basicType = Boolean.FALSE;

    /**
     * 排序
     */
    @Column(name = "sort")
    private Integer sort;

    /**
     * 物理表名
     */
    @Column(name = "table_name")
    private String tableName;

    /**
     * 数据接口
     */
    @Column(name = "data_api")
    private String dataApi;

    
}